QT       -= gui

TARGET = firewater
TEMPLATE = lib

DEFINES += PRINTF_LIBRARY

SOURCES += \
        firewater.cpp

HEADERS += \
        firewater.h \
        ../shared/dataengineinterface.h

INCLUDEPATH += \
    ../shared/

# 部署规则
win32 {
    DESTDIR = $$OUT_PWD
    target.files = $$DESTDIR/$${TARGET}.dll
    target.path = C:/vofa+_publish/plugins/dataengines
    INSTALLS += target
}
macx {
    DESTDIR = $$OUT_PWD/..
    target.files = $$DESTDIR/lib$${TARGET}.1.0.0.dylib
    target.path = /Users/je0000/vofa+_publish/plugins/dataengines
    INSTALLS += target
}

unix:!macx {
DESTDIR = $$OUT_PWD/..
target.files = $$DESTDIR/lib$${TARGET}.so.1.0.0
target.path = /home/je00/vofa+_publish/plugins/dataengines
INSTALLS += target
}

# 如果自动部署失败，尝试通过 POST_LINK 进行拷贝
# QMAKE_POST_LINK += copy /y $$OUT_PWD\\release\\$${TARGET}.dll C:\\vofa+_publish\\plugins\\dataengines
